Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat : 대학/학과 공지 뷰 api 연결 및 무한 스크롤 적용 #167

Merged
merged 16 commits into from
Feb 25, 2024

Conversation

m6z1
Copy link
Collaborator

@m6z1 m6z1 commented Feb 23, 2024

📮 관련 이슈

✍️ 구현 내용

  • 대학/학과 공지 api 연결했습니다.
  • 각 공지에 무한 스크롤 적용했습니다. (로딩 뷰 적용)
  • 캐싱 작업은 앱이 실행되어 있는 동안 적용 되어있습니다. > 추후 수정해보겠습니다.
  • 데이터 바인딩을 제거하고 뷰바인딩 적용했습니다.

📷 구현 영상

Screen_recording_20240223_220356.webm

✔️ 확인 사항

  • 컨벤션에 맞는 PR 타이틀
  • 관련 이슈 연결
  • PR 관련 정보 연결 (작업자, 라벨, 마일스톤 등)
  • Github Action 통과

@m6z1 m6z1 added 🤗 FEATURE Develop this project 💛명지 labels Feb 23, 2024
@m6z1 m6z1 self-assigned this Feb 23, 2024
Copy link
Contributor

@huiwoo-jo huiwoo-jo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

관련 지식이 모자라서 적극적인 리뷰가 어려운 점 양해부탁드립니다ㅠㅠ
전체적인 코드 정렬과 id 컨벤션 수정 정도면 될거 같아용
코멘트 확인 부탁드립니다!

Comment on lines -109 to -118
override fun onResume() {
super.onResume()
val intentFilter = IntentFilter(ACTION.FCM_ACTION_NAME)
LocalBroadcastManager.getInstance(requireContext())
.registerReceiver(localBroadCast, intentFilter)
}

override fun onStop() {
super.onStop()
LocalBroadcastManager.getInstance(requireContext()).unregisterReceiver(localBroadCast)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

단순 궁금증 : 이 파트가 왜 지워진건지 궁금합니당

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fcm 관련 코드인 것 같아서 지웠는데 fcm 제가 구현해보고 싶어서요 ㅎㅅㅎ

app/src/main/res/layout/item_notice.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@huiwoo-jo huiwoo-jo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어요~!👍

@m6z1 m6z1 merged commit 5801966 into develop Feb 25, 2024
1 check passed
@m6z1 m6z1 deleted the feature/all-notice-api branch February 25, 2024 06:17
Copy link
Member

@hoyahozz hoyahozz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

중요한 부분이라 늦었지만 리뷰 남겨봅니다.

  1. 다크모드 혹은 가로모드 변경으로 구성 변경을 발생시킨 후 페이징이 정상적으로 작동하는지 테스트 해보아요 :)
  2. 일반적으로 페이징의 경우 전체 로딩을 띄우기 보단 리스트 마지막에 로딩을 띄우는 경우가 많습니다! 이 부분 도전해보시면 어떨까요?


NoticeTabType.FACULTY -> viewModelScope.launch {
when (val result = noticeRepository.fetchDepartmentNotices(
"컴퓨터소프트웨어공학과", DEFAULT_REFRESH_PAGE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

임시 코드일까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 아직 학과 설정 부분 연결이 되지 않아서 추후에 수정할 예정입니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💛명지 🤗 FEATURE Develop this project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

대학 / 학과 공지사항 API 연결
3 participants